package cn.com.zal.cgweb.common.utils;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Vector;

import org.apache.struts.util.LabelValueBean;
import org.hibernate.Session;

import cn.com.zal.cgweb.CgwebSessionFactory;

import cn.com.zal.cgweb.pojo.TcCompany;
import cn.com.zal.cgweb.pojo.TcCompanyDAO;

public class CompanyUtil {

	private static TcCompanyDAO aTcCompanyDAO = new TcCompanyDAO();

	public static List<TcCompany> getAllCompanys() {
		List<TcCompany> rtnList = new ArrayList<TcCompany>();
		rtnList = aTcCompanyDAO.findAll();
		return rtnList;
	}

	public static TcCompany getCompany(long companyId) throws Exception {

			return aTcCompanyDAO.findById(companyId);
	}

}
